<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<div id = "menuImpiegato">
		<ui:include src="/pagine_impiegati/commonHeader.xhtml" />
	</div>	
</h:head>	

<h:body>
	<h:form>
		<p:panel header="Modifica Password">
			<br></br>

			<h:panelGrid columns="3" id="modGrid">
				<br></br>
				<h:outputLabel for="password">Nuova Password:</h:outputLabel>
				<p:password id="password" value="#{profileBean.user.password}"
					feedback="true" match="pwd2" label="Password"/>
				<p:message for="password" />

				<h:outputLabel for="pwd2">Conferma Password:</h:outputLabel>
				<p:password id="pwd2" label="Confirm Password" value="#{profileBean.user.password}"/>

			</h:panelGrid>
			<p:commandButton value="Conferma" update="modGrid"
				action="#{profileBean.modificaImp()}"/>

		</p:panel>
	

	</h:form>

</h:body>
</html>